<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="panel-title">
        <span>{{ title }}</span>
        <slot name="btn"></slot>
      </div>

      <!-- 内容 -->
      <div class="content">
        <slot></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: '完成'
        }
    }
};
</script>

<style lang="less" scoped>
.el-card__header {
  .panel-title {
    display: flex;
    justify-content: space-between;
  }
}
</style>